-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#160 해커톤 단건 조회 페이지 구현 #167
The head ref may contain hidden characters: "Feature/#160-\uD574\uCEE4\uD1A4_\uB2E8\uAC74_\uC870\uD68C_\uD398\uC774\uC9C0_\uAD6C\uD604"
Conversation
…ithub.com/SW-CSS/sw-css into Feature/#152-해커톤_페이지_구현
…ub.com/SW-CSS/sw-css into Feature/#152-해커톤_페이지_구현
…ub.com/SW-CSS/sw-css into Feature/#152-해커톤_페이지_구현
- 정보 유형을 상태로 관리하지 않고 별개의 페이지로 분리 #160
- 팀 Readme 불러오는 로직 구현 #160
const ReadmeViewer = ({ repoUrl }: ReadmeViewerProps) => { | ||
const { data: readme, isPending, isError } = useGithubReadme(repoUrl); | ||
if (isPending) return <div className="flex justify-center flex-grow items-center text-xl text-comment">README 문서를 불러오는 중입니다.</div>; | ||
if(isError||!readme) return <div className="flex justify-center flex-grow items-center text-xl text-comment">README 문서를 불러오는 데 실패했습니다.</div>; | ||
return <MarkdownViewer content={readme} />; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿!!
@@ -29,7 +29,7 @@ function useDivSize(): [React.RefObject<HTMLDivElement>, ComponentSize] { | |||
window.addEventListener('resize', handleResize); | |||
|
|||
return () => window.removeEventListener('resize', handleResize); | |||
}, []); | |||
}, [componentRef.current?.getBoundingClientRect().top, componentRef.current?.getBoundingClientRect().left]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오홍 이렇게 해결했구나!
20분